#import "JoyfulBalloonCell.h"


@implementation JoyfulBalloonCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self silhouetteDelightInitUI];
	}
	return self;
}

- (void)setArcaneOnwardVirtuous:(JoyfulBalloonModel *)arcaneOnwardVirtuous {
	_arcaneOnwardVirtuous = arcaneOnwardVirtuous;

	//: 配置cell的UI



}
- (UIImageView *)universeTranquilImageView {
	if (!_universeTranquilImageView) {
	
        _universeTranquilImageView = [UIImageView new];
        _universeTranquilImageView.contentMode = UIViewContentModeScaleAspectFill;
        _universeTranquilImageView.clipsToBounds = YES;
        _universeTranquilImageView.layer.cornerRadius = 9;
        _universeTranquilImageView.layer.masksToBounds = YES;
        UIImage *luminaryRippleXylophone = [UIImage imageNamed:@"images/image_0.png"];
        if (luminaryRippleXylophone) {
	        _universeTranquilImageView.image = luminaryRippleXylophone;
        }
	}
	return _universeTranquilImageView;
}

//: self.luminousBtn 的点击事件
- (void)action_5 {}

- (void)silhouetteDelightInitUI {
	//: 描述_0
	[self.contentView addSubview:self.universeTranquilImageView];
	[self.universeTranquilImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(126);
		make.height.mas_equalTo(141);
		make.top.equalTo(@(20));
		make.bottom.equalTo(@(20));
	}];


    //: 描述_1
    UIImageView *glimmerElevate = [UIImageView new];
    glimmerElevate.contentMode = UIViewContentModeScaleAspectFill;
    glimmerElevate.clipsToBounds = YES;
    glimmerElevate.layer.cornerRadius = 19;
    glimmerElevate.layer.masksToBounds = YES;
    UIImage *windfall = [UIImage imageNamed:@"images/image_1.png"];
    if (windfall) {
	    glimmerElevate.image = windfall;
    }
    self.flourishUnfoldImageView = glimmerElevate;
    [self.contentView addSubview:glimmerElevate];
	[self.flourishUnfoldImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(48);
		make.height.mas_equalTo(191);
		make.bottom.equalTo(@(12));
	}];


    //: 描述_2
    self.mellowLeapView = [[UIView alloc] initWithFrame:CGRectZero];
    self.mellowLeapView.frame = CGRectMake(15, 3, 32, 92);
    [self.contentView addSubview:self.mellowLeapView];


    //: 描述_3
    UILabel *embarkMotion = [[UILabel alloc] init];
    embarkMotion.text = @"label_3";
    embarkMotion.font = [UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
    embarkMotion.textColor = [UIColor colorWithRed:187/255.0 green:11/255.0 blue:21/255.0 alpha:0.5];
    embarkMotion.textAlignment = NSTextAlignmentLeft;
    embarkMotion.numberOfLines = 0;
    self.pirateOdysseySuspicionLabel = embarkMotion;
    [self.contentView addSubview:embarkMotion];
	[self.pirateOdysseySuspicionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(63);
		make.height.mas_equalTo(74);
	}];


    //: 描述_4
    UITextField *nirvanaDiligent = [UITextField new];
    nirvanaDiligent.size = CGSizeMake(62, 77);
    nirvanaDiligent.left = 38;
    nirvanaDiligent.top = 21;
    self.enigmaWispTextField = nirvanaDiligent;
    [self.contentView addSubview:nirvanaDiligent];


    //: 描述_5
    self.luminousBtn = [UIButton new];
    self.luminousBtn.size = CGSizeMake(89, 36);
    self.luminousBtn.left = 33;
    self.luminousBtn.top = 43;
    UIImage *fusion = [UIImage imageNamed:@"images/icon_5.png"];
    if (fusion) {
	    [self.luminousBtn setImage:fusion forState:UIControlStateNormal];
    }
    [self.luminousBtn setTitle:@"button_5" forState:UIControlStateNormal];
    [self.luminousBtn setTitle:@"button_selected_5" forState:UIControlStateSelected];
    [self.luminousBtn setTitleColor:[UIColor colorWithRed:33/255.0 green:167/255.0 blue:150/255.0 alpha:0.6] forState:UIControlStateNormal];
    [self.luminousBtn setTitleColor:[UIColor colorWithRed:227/255.0 green:28/255.0 blue:7/255.0 alpha:0.9] forState:UIControlStateSelected];
    [self.luminousBtn addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.luminousBtn];
}


@end